package com.cheyun.netsalev3.bean

import androidx.databinding.BaseObservable
import androidx.databinding.Bindable
import com.cheyun.netsalev3.BR
import java.io.Serializable

/**
 * @author Michael
 * @date  2018/12/28 - 13:54.
 */
data class CustomListParam(var name: String, var id: Int, var drawable: Int, var key: String, var value: String = "") : BaseObservable(), Serializable {
    override fun toString(): String {
        return "NameIdParam(name=" + this.name + ", id=" + this.id + ",IsSelect=" + this.IsSelect + ")"
    }

    @get:Bindable
    var IsSelect: Boolean = false
        set(isSelect) {
            field = isSelect
            notifyPropertyChanged(BR.isSelect)
        }
}